{capture name=pagetitle}{if isset($id)}{t}Edit{/t}{else}{t}New{/t}{/if}
{/capture}{include file="file:$theme_global/_header.tpl" pagetitle=$smarty.capture.pagetitle}
{include file="file:$theme_global/_messages.tpl"}
<div class="grid_12 alpha">
<h3>{if isset($id)}{t}Edit{/t}{else}{t}New{/t}{/if}</h3>
	<form method="post" action="{url}FORM_ACTION{/url}" enctype="multipart/form-data">
	{if isset($THE_ID)}
	<input type="hidden" name="THE_ID" value="{$THE_ID}"/>
	{/if}
FORM_FIELDS

	<p class="no-border">
		<input type="submit" class="button" value="{t}Save{/t}" />
	</p>
</form>
</div>
<div class="grid_4 omega">
<h3>{t}Options{/t}</h3>
<div class="sidemenu">
<ul>
	<li><a href="{url}INDEX_URL{/url}">{t}Back to List{/t}</a></li>
	{if isset($THE_ID)}<li><a href="{url}DELETE_URL/THE_ID/{$THE_ID}{/url}">{t}Delete{/t}</a></li>{/if}
</ul>
</div>
{include file="file:$theme_global/_sidenav.tpl"}
</div>
{include file="file:$theme_global/_footer.tpl"}